﻿<%@ Page Title="" culture="en-GB" Language="C#" MasterPageFile="~/MasterPages/AdminMaster.master" AutoEventWireup="true" CodeFile="TimeSheet.aspx.cs" Inherits="Admin_TimeSheet" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <script>
        function calendarShown(sender, args) {
            sender._popupBehavior._element.style.zIndex = 10005;
        }
    </script>
    <asp:ScriptManager ID="ScriptID" runat="server"></asp:ScriptManager>
    <table>
           <tr>
                        <td style="vertical-align: middle;width: 20%;" align="right" class="auto-style3">
                            Brief Start Date &nbsp;
                        </td>
                        <td class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;
                        </td>
                        <td style="width: 54%">                                                   
<%--<asp:TextBox ID="txtBriefSDate" runat="server" MaxLength="50" placeholder="Enter Brief Start Date" ViewStateMode="Enabled" Width="173px" cultureinvariantvalues="true"></asp:TextBox>  
<asp:CalendarExtender ID="mdlStartDate" runat="server" Format="dd/MM/yyyy" PopupButtonID="popcalender1" OnClientShown="calendarShown"   TargetControlID="txtBriefSDate" />
<i class="icon-th" id="popcalender1"></i>
<asp:RequiredFieldValidator ID="reqBriefSDate" runat="server" ControlToValidate="txtBriefSDate" Display="Dynamic" ErrorMessage="Please select Brief Start Date" ForeColor="Red" ValidationGroup="NextValidation"></asp:RequiredFieldValidator>--%>

  <asp:TextBox ID="txtStartDate" runat="server" MaxLength="50" placeholder="Start Date" ViewStateMode="Enabled" Width="173px" cultureinvariantvalues="true"></asp:TextBox>
<asp:CalendarExtender ID="mdlStartDate" runat="server" Format="dd/MM/yyyy" PopupButtonID="popcalender1" OnClientShown="calendarShown" TargetControlID="txtStartDate" />
<i class="icon-th" id="popcalender1"></i>
<asp:RequiredFieldValidator ID="reqStartDate" runat="server" ControlToValidate="txtStartDate" Display="Dynamic" ErrorMessage="Select Start Date" ForeColor="Red" ValidationGroup="ADDGDDETAILS"></asp:RequiredFieldValidator>
                                                                        
                        </td>
                    </tr>                                                                             
          <tr>
                        <td style="vertical-align: middle;width: 20%;" align="right" class="auto-style3">
                            Brief End Date &nbsp;
                        </td>
                        <td class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;
                        </td>
                        <td style="width: 54%">                                                    
                             <%--  <asp:TextBox ID="txtBriefEDate" runat="server" MaxLength="50" placeholder="Enter Brief End Date" ViewStateMode="Enabled" Width="173px" cultureinvariantvalues="true"></asp:TextBox>
                               <asp:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd/MM/yyyy" PopupButtonID="popcalender2" OnClientShown="calendarShown"   TargetControlID="txtBriefEDate" />
                                <i class="icon-th" id="popcalender2"></i>
                                <asp:RequiredFieldValidator ID="reqBriefEDate" runat="server" ControlToValidate="txtBriefEDate" Display="Dynamic" ErrorMessage="Please select Brief End Date" ForeColor="Red" ValidationGroup="NextValidation"></asp:RequiredFieldValidator>  --%>

   <asp:TextBox ID="txtEndDate" runat="server" MaxLength="50" placeholder="End Date" ViewStateMode="Enabled" Width="173px" cultureinvariantvalues="true"></asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd/MM/yyyy" PopupButtonID="popcalender2" OnClientShown="calendarShown" TargetControlID="txtEndDate" />
<i class="icon-th" id="popcalender2"></i>
<asp:RequiredFieldValidator ID="reqEndDate" runat="server" ControlToValidate="txtEndDate" Display="Dynamic" ErrorMessage="Please select End Date" ForeColor="Red" ValidationGroup="ADDGDDETAILS"></asp:RequiredFieldValidator>

                        </td>
                    </tr>
           <tr>
                  <td style="vertical-align: middle;width: 20%;" align="right" class="auto-style3"> </td>
                  <td class="auto-style2"></td>
                  <td>
                       <%--<asp:CompareValidator id="txtBriefMasterDate" runat="server" controltocompare="txtBriefEDate"   display="Dynamic"  
                           enableclientscript="true" controltovalidate="txtBriefSDate" errormessage="Start date must be less than End date" 
                           type="Date" setfocusonerror="true" operator="LessThanEqual"  text="Start date must be less than End date" ForeColor="Red" />--%>

                        <asp:CompareValidator id="txtBriefMasterDate" runat="server" controltocompare="txtEndDate"   display="Dynamic"  
                           enableclientscript="true" controltovalidate="txtStartDate" errormessage="Start date must be less than End date" 
                           type="Date" setfocusonerror="true" operator="LessThanEqual"  text="Start date must be less than End date" ForeColor="Red" />
                   </td>
            </tr>
    </table>

</asp:Content>

